home *** CD-ROM | disk | FTP | other *** search
- // MainDoc.h : interface of the CMainDoc class
- //
- /////////////////////////////////////////////////////////////////////////////
-
- #if !defined(AFX_MAINDOC_H__51F9B1EB_CAEF_11D4_A5D3_444553540000__INCLUDED_)
- #define AFX_MAINDOC_H__51F9B1EB_CAEF_11D4_A5D3_444553540000__INCLUDED_
-
- #if _MSC_VER > 1000
- #pragma once
- #endif // _MSC_VER > 1000
-
- class CRectItem;
-
-
- class CMainDoc : public COleDocument
- {
- protected: // create from serialization only
- CMainDoc();
- DECLARE_DYNCREATE(CMainDoc)
-
- // Attributes
- public:
- static CLIPFORMAT m_cfPrivate;
- CSize m_sizeDoc;
- CSize& GetDocumentSize();
- BOOL m_bNeedUpdate;
-
- // Operations
- public:
- CRectItem* CreateItem(); // this document only stores CRectItems
- void DeleteItem(CRectItem* pItem);
- void AdjustItemPosition(CRectItem* pItem);
-
- // Overrides
- public:
- virtual ~CMainDoc();
- virtual BOOL OnNewDocument();
- virtual void Serialize(CArchive& ar);
-
- #ifdef _DEBUG
- virtual void AssertValid() const;
- virtual void Dump(CDumpContext& dc) const;
- #endif
-
- protected:
-
- // Generated message map functions
- protected:
- //{{AFX_MSG(CMainDoc)
- // NOTE - the ClassWizard will add and remove member functions here.
- // DO NOT EDIT what you see in these blocks of generated code !
- //}}AFX_MSG
- DECLARE_MESSAGE_MAP()
- };
-
- /////////////////////////////////////////////////////////////////////////////
-
- //{{AFX_INSERT_LOCATION}}
- // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
-
- #endif // !defined(AFX_MAINDOC_H__51F9B1EB_CAEF_11D4_A5D3_444553540000__INCLUDED_)
-